Recording of heart rate variability